package com.example.demo.repository;

import com.example.demo.entity.MbtiResult;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface MbtiResultRepository extends JpaRepository<MbtiResult, Long> {
    Optional<MbtiResult> findByStudentId(Long studentId);

    List<MbtiResult> findByStudentIdOrderByTestTimeDesc(Long id);

    List<MbtiResult> findByStudentIdIn(List<Long> collect);
}
